package com.tuanzi.loan.business.entity.family;

import com.tuanzi.loan.core.vo.IdentityResponse;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * User: liangZongXi
 * Create time: 19:12 2018/8/30
 * Description: 信用卡信息
 */
@Data
@Entity
@Table(name = "loan_credit_card_info")
public class LoanCreditCardInfo extends IdentityResponse {
    @Id
    @Column(name = "id")
    private Long id;
    @Column(name = "platform")
    private Integer platform;
    @Column(name = "prdid")
    private String prdid;
    @Column(name = "channel")
    private Integer channel;
    @Column(name = "position")
    private Integer position;
    @Column(name = "starttime")
    private Date startTime;
    @Column(name = "endtime")
    private Date endTime;
    @Column(name = "url")
    private String url;
    @Column(name = "logo")
    private String logo;
    @Column(name = "name")
    private String name;
    @Column(name = "summary")
    private String summary;
    @Column(name = "initcount")
    private Integer initCount;
    @Column(name = "success_count")
    private Integer successCount;
    @Column(name = "tag")
    private String tag;
    @Column(name = "status")
    private Integer status;
    @Column(name = "advert_space")
    private Integer advertSpace;
    @Column(name = "show_state")
    private Integer showState;
    @Column(name = "prompt")
    private String prompt;
    @Column(name = "operator")
    private String operator;
    @Column(name = "ctime")
    private Date cTime;
    @Column(name = "summary_add")
    private String summaryAdd;


    public Boolean showOffButton(){
        if(1 == status){
            return true;
        }

        return false;
    }
}
